import request from '@/utils/request'

export function getLgdType(parameter) {
  return request({
    url: '/DangerLawGist/GetDirectories',
    method: 'get',
    params: parameter
  })
} 

export function getClassifys(parameter) {
  return request({
    url: '/DangerLawGist/GetClassifys',
    method: 'get',
    params: parameter
  })
}

// 历史依据 /api/DangerLawGist/GetPageData?page=0&dataType=HistoryFrequency 

export function getHistoryFrequency(parameter) {
  return request({
    url: '/DangerLawGist/GetPageData',
    method: 'get',
    params: parameter
  })
}
// 收藏 DangerLawGist/Collect
export function Collect(parameter) {
  return request({
    url: '/DangerLawGist/Collect',
    method: 'get',
    params: parameter
  })
}
// 取消收藏 DangerLawGist/UnCollected
export function unCollected(parameter) {
  return request({
    url: '/DangerLawGist/UnCollected',
    method: 'get',
    params: parameter
  })
}
// 详细 /DangerLawGist/GetDetail
export function getDetail(parameter) {
  return request({
    url: '/DangerLawGist/GetDetail',
    method: 'get',
    params: parameter
  })
}
// 新增 DangerLawGist/Add
export function Add(data) {
  return request({
    url: '/DangerLawGist/Add',
    method: 'post',
    data
  })
}

// 忽略 DangerLawGist/UnInterested
export function UnInterested(parameter) {
  return request({
    url: '/DangerLawGist/UnInterested',
    method: 'get',
    params: parameter
  })
}
// 取消忽略  DangerLawGist/Interest

export function Interest(parameter) {
  return request({
    url: '/DangerLawGist/Interest',
    method: 'get',
    params: parameter
  })
}